package com.atguigu.springcloud.config;  
  
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;  
  
@SpringBootConfiguration  
public class ApplicationContextConfig {  
  
    @Bean  
    @LoadBalanced // 后面用到，暂时注释掉
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }  
  
}